﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Data;

namespace Opskriftssamling
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Opskrift op = new Opskrift("Agurk", 1, "portion", new List<Ingrediens>(), "blablablabla", "bla", new Dictionary<string,Opskrift>());
            Opskrift op2 = new Opskrift("Agurkesalat", 1, "portion", new List<Ingrediens>(), "blablablabla", "bla", new Dictionary<string, Opskrift>());
            List<Opskrift> ops = new List<Opskrift>();
            Ingrediens ing = new Ingrediens("Agurk", 2.5, "hele");
            Ingrediens ing2 = new Ingrediens("eddike", 1, "liter");
            op.Ingredienser.Add(ing);
            op2.Ingredienser.Add(ing);
            op2.Ingredienser.Add(ing2);
            op.Relaterede.Add(op2.Titel, op2);
            op2.Relaterede.Add(op.Titel, op);
            ops.Add(op);
            ops.Add(op2);
            new XMLParser().write(ops);


            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
